package com.kou.backend.request.log;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.kou.backend.request.QueryListBaseDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 查询登录日志列表请求体
 *
 * @author: Kou
 * @since: 2023/9/2 13:45
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class LogLoginQueryListReqDTO extends QueryListBaseDTO {
    /**
     * ip地址
     */
    @Schema(name = "ipAddress", description = "ip地址")
    private String ipAddress;

    /**
     * 用户账号
     */
    @Schema(name = "userAccount", description = "用户账号")
    private String useAccount;

    /**
     * 登录状态
     */
    @Schema(name = "status", description = "登录状态")
    private String status;

    /**
     * 开始时间
     */
    @Schema(name = "startTime", description = "开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    /**
     * 结束时间
     */
    @Schema(name = "endTime", description = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;
}
